package com.itheima.homework.countDownLatch;

import java.util.concurrent.CountDownLatch;

public class Ming implements Runnable{
    private CountDownLatch cd;

    public Ming(CountDownLatch cd) {
        this.cd = cd;
    }

    @Override
    public void run() {
        System.out.println("我叫小明,我来打球来了,卧槽,还我求");
        try {
            cd.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("终于把球还我了,老子回家吃饭了!!!");
    }
}
